package com.photobucket.webapi.service
{
	import flash.events.EventDispatcher;
	import com.photobucket.webapi.oauth.IOAuthRequest;
	import com.photobucket.webapi.interfaces.IService;
	import flash.events.IEventDispatcher;
	
	public class MockService extends EventDispatcher implements IService
	{
		private var result:XML;
		
		public function MockService(result:XML)
		{
			this.result = result;
		}
		
		public function getAPIServer(url:String=null):String
		{
			return null;
		}
		
		public function setAPIRoot(hostname:String):void
		{
		}
		
		public function get userLoginURL():String
		{
			return null;
		}
		
		public function makeRequest(request:IOAuthRequest, priority:int=2):void
		{
			request.result(result);
			
		}
		
		public function ping(onResult:Function, onFault:Function, server:String=null):void
		{
		}
		
		public function setConsumer(consumer_key:String, consumer_secret:String):void
		{
		}
		
		public function get running():Boolean
		{
			return false;
		}
		
		public function set maxConcurrentRequests(value:int):void
		{
		}
		
		public function get maxConcurrentRequests():int
		{
			return 0;
		}
		
		public function setUserToken(oauth_token:String, oauth_token_secret:String):void
		{
		}
		
	}	
}
